
package org.apache.hello_world_async_soap_http;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import java.util.concurrent.Future;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.AsyncHandler;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.Response;
import javax.xml.ws.ResponseWrapper;

/**
 * This class was generated by Apache CXF 2.7.8
 * 2014-02-14T11:31:24.442+08:00
 * Generated source version: 2.7.8
 * 
 */
public final class GreeterAsync_SoapPort_Client {

    private static final QName SERVICE_NAME = new QName("http://apache.org/hello_world_async_soap_http", "SOAPService");

    private GreeterAsync_SoapPort_Client() {
    }

    public static void main(String args[]) throws java.lang.Exception {
        URL wsdlURL = SOAPService.WSDL_LOCATION;
        if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }
      
        SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
        GreeterAsync port = ss.getSoapPort();  
        
        {
        System.out.println("Invoking greetMeSometimeAsync...");
        java.lang.String _greetMeSometimeAsync_requestType = "";
        Response<org.apache.hello_world_async_soap_http.types.GreetMeSometimeResponse> _greetMeSometimeAsync__return = port.greetMeSometimeAsync(_greetMeSometimeAsync_requestType);
        System.out.println("greetMeSometimeAsync.result=" + _greetMeSometimeAsync__return);


        }
        {
        System.out.println("Invoking greetMeSometimeAsync...");
        java.lang.String _greetMeSometimeAsync_requestType = "";
        AsyncHandler<org.apache.hello_world_async_soap_http.types.GreetMeSometimeResponse> _greetMeSometimeAsync_asyncHandler = null;
        Future<?> _greetMeSometimeAsync__return = port.greetMeSometimeAsync(_greetMeSometimeAsync_requestType, _greetMeSometimeAsync_asyncHandler);
        System.out.println("greetMeSometimeAsync.result=" + _greetMeSometimeAsync__return);


        }
        {
        System.out.println("Invoking greetMeSometime...");
        java.lang.String _greetMeSometime_requestType = "";
        java.lang.String _greetMeSometime__return = port.greetMeSometime(_greetMeSometime_requestType);
        System.out.println("greetMeSometime.result=" + _greetMeSometime__return);


        }

        System.exit(0);
    }

}
